package com.punai.config.domain;


import com.punai.common.utils.sqlite.SLCDesc;

public class EngineerLinkTemplate {

	@SLCDesc(tc = "template_id")
	private String templateId;
	@SLCDesc(tc = "class_code")
	private String classCode;

	
	
	public EngineerLinkTemplate() {
		super();
	}

	public EngineerLinkTemplate(String templateId, String classCode) {
		super();
		this.templateId = templateId;
		this.classCode = classCode;
	}

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getClassCode() {
		return classCode;
	}

	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((classCode == null) ? 0 : classCode.hashCode());
		result = prime * result
				+ ((templateId == null) ? 0 : templateId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EngineerLinkTemplate other = (EngineerLinkTemplate) obj;
		if (classCode == null) {
			if (other.classCode != null)
				return false;
		} else if (!classCode.equals(other.classCode))
			return false;
		if (templateId == null) {
			if (other.templateId != null)
				return false;
		} else if (!templateId.equals(other.templateId))
			return false;
		return true;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("EngineerLinkTemplate [templateId=").append(templateId)
				.append(", classCode=").append(classCode).append("]");
		return builder.toString();
	}
	
	
	
}
